package com.qys.livesMall.shop.modal.dto.shop.level;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @menu AddLevel
 * @date 2023/05/30 10:09
 */
@Data
public class ShopLevelSaveDTO {

    @Schema(description = "等级ID  不传就是增加")
    private Integer id;

    @Schema(description = "等级")
    private Integer level;

    @Schema(description = "等级图标")
    private String icon;

    @Schema(description = "等级名")
    private String name;

    @Schema(description = "升级条件（下级店铺数量）")
    private Integer upgradeConditionNum;

    @Schema(description = "升级所需缴纳保证金额")
    private BigDecimal earnestMoney;

    @Schema(description = "先付后货 1:打开  2：关闭")
    private Byte cashBeforeDelivery;

    @Schema(description = "先货后付 1:打开  2：关闭")
    private Byte deliveryBeforeCash;

    @Schema(description = "下一级")
    private Integer nextLevel;

    @Schema(description = "是否允许参加平台活动  1:打开  2：关闭")
    private Byte activityFlag;

    @Schema(description = "是否允许发起任务  1:打开  2：关闭")
    private Byte sellTaskFlag;

    @Schema(description = "平台抽成点数")
    private BigDecimal platformRatio;
    /**
     * 最小收益点
     */
    private BigDecimal minIncomeRatio;
    /**
     * 最大收益点
     */
    private BigDecimal maxIncomeRatio;

    /**
     * 最小采购数
     */
    private Integer purchaseMinNum;

    /**
     * 最小采购金额
     */
    private BigDecimal purchaseMinAmount;
    /**
     * 最大采购金额
     */
    private BigDecimal purchaseMaxAmount;

    /**
     * 月采购额度
     */
    private BigDecimal purchaseQuota;


    /**
     * 收益天数
     */
    private Integer incomeDays;
    /**
     * 升级奖励
     */
    private BigDecimal upgradeReward;
}

